#ifndef DATE_H
#define DATE_H

#include <QObject>
#include <QDate>
#include <QTimer>

class Date:public QObject
{
    Q_OBJECT
public:
    Date();
    ~Date();
    bool Init();
    void start();
    inline bool isLastDayOfMon();
    inline bool isFirstOfTen();
    QString toString()const;
    QDate getQDate()const;
public slots:
    void ANewDay();
signals:
    void dateSig_newDay(Date *date);
    void dateSig_firstDayOfTen(Date *date);
    void dateSig_LastDayOfMon(Date *date);
private:
    QDate m_date;
    QTimer *m_timer;
};

#endif // DATE_H
